wayland/popup: Remove unnecessary checks when mapping popup
authorJonas Ådahl <jadahl@gmail.com>
Sat, 22 Feb 2020 19:08:37 +0000 (20:08 +0100)
committerJonas Ådahl <jadahl@gmail.com>
Sat, 22 Feb 2020 19:08:37 +0000 (20:08 +0100)
We only call this when we're not already mapped so don't check that. We
also only call this when we should be mapped so don't check that either.

gdk/wayland/gdksurface-wayland.c

index 2174bdf72a481905e6e8468b6cad82b770c357f3..e4fdae31225cebfb5a0a82563ec489e70952141b 100644 (file)
@@ -2697,12 +2697,6 @@ gdk_wayland_surface_map_popup (GdkSurface     *surface,
   GdkSurface *parent;
   GdkWaylandSeat *grab_input_seat;
 
-  if (!should_be_mapped (surface))
-    return;
-
-  if (impl->mapped)
-    return;
-
   parent = surface->parent;
   if (!parent)
     {